#pragma once
#include <QWidget>
#include <QPoint>
#include <QtGui/QMouseEvent>


class ClickWidget :
    public QWidget
{
    Q_OBJECT

public:
    ClickWidget(QWidget* parent = 0);
    ~ClickWidget();

signals:
    void MousePressed(int x, int y);
    void MouseReleased(int x, int y);
    void MouseMoving(int x, int y);

protected:
    void mousePressEvent(QMouseEvent* event);
    void mouseReleaseEvent(QMouseEvent* event);
    void mouseMoveEvent(QMouseEvent* event);
};

